package day6work.animalclasss;

public class Chick extends Animal  {


    public Chick(int age, String name, String color) {
        super(age, name, color);
    }
    public void layeggs() {
        System.out.println(name+"正在窝里下蛋");

    }

    @Override
    public void eat() {
        System.out.println(age+name+"喜欢吃小米");

    }
}
